package com.example.hfweather.ui.home

import com.example.hfweather.base.BaseView
import com.example.hfweather.bean.ChangeCityBean
import com.qweather.sdk.response.air.v1.AirV1CurrentResponse
import com.qweather.sdk.response.air.v1.AirV1HourlyResponse
import com.qweather.sdk.response.geo.GeoCityTopResponse
import com.qweather.sdk.response.weather.WeatherHourlyResponse
import com.qweather.sdk.response.weather.WeatherNowResponse

interface HomeView : BaseView {
    //1.获取当前天气成功
    fun getMainWeatherDataSuccess(response: WeatherNowResponse)

    //2.获取当前天气失败
    fun getMainWeatherDataFailed(message: String)

    /**
     * 3.获取逐小时天气数据成功
     */
    fun getHourlyWeatherDataSuccess(response: WeatherHourlyResponse)

    /**
     * 4.获取逐小时天气数据失败
     */
    fun getHourlyWeatherDataFailure(errorResponse: String)

    //5.获取24小时空气质量成功
    fun getAirQualityDataSuccess(response: AirV1HourlyResponse)
    //6.获取24小时空气质量失败
    fun getAirQualityDataFailure(errorResponse: String)

    //7.获取实时空气质量数据成功
    fun getCurrentAirQualityDataSuccess(response: AirV1CurrentResponse)
    //8.获取实时空气质量数据失败
    fun getCurrentAirQualityDataFailure(errorResponse: String)

//    //9.获取城市列表成功
//    fun getTopCityDataSuccess(response: GeoCityTopResponse)
//    //10.获取城市列表失败
//    fun getTopCityDataFailure(errorResponse: String)

    //11.获取本地城市列表数据并刷新城市列表成功
    fun refreshCityCityList(cityList: MutableList<ChangeCityBean>)


}